package com.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: sijunqiang
 * @Date: 2020/5/18 20:20
 * @Description: 品牌实体类
 */
@Data
@Table(name = "tb_brand")
public class Brand {


    /**
     * 品牌主键
     */
    @Id
    @KeySql(useGeneratedKeys = true)  // 这个是开启主键回显, 当新增的时候主键会回显
    private Long id;

    /**
     * 品牌的名称
     */
    private String name;
    /**
     * 图片地址
     */
    private String image;
    /**
     * 品牌首字母
     */
    private Character letter;
    private Date createTime;
    private Date updateTime;
}
